<?php

use yii\helpers\Url;
use yii\helpers\Json;
use common\assets\WeuiPluginAsset;

WeuiPluginAsset::register($this);
$this->title = '我的推广';

$config = [
    'url' => Url::to(['poster']),
    'element' => 'source',
];

$params = Json::encode($config);
$this->registerJs($this->render('_script.js'));
$this->registerJs('CustormTouchSpin.init(' . $params . ');');
?>

<div id="source" class="mine-qrcode"></div>